package com.bilibili.server.controller;

import com.bilibili.model.vo.HuanXinUserVo;
import com.bilibili.server.service.HuanXinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HuangRongFu
 * 2021/11/23 星期二11:37 上午
 */

@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    @Autowired
    private HuanXinService huanXinService;

    /**
     * 环信用户信息
     *
     * @Return: ResponseEntity
     */
    @GetMapping("/user")
    public ResponseEntity findUser() {

        HuanXinUserVo vo = huanXinService.findUser();
        return ResponseEntity.ok(vo);
    }
}
